package cn.pzhu.java.ch03.parametertransfer;
class A{
	int a;
}
public class ParameterTranfer {
	public static void chageObjectA(A a){
		a.a=100;
		System.out.println(" a.a="+a.a);
	}
	public static void changeIntValue(int a){
		a=100;
		System.out.println(" a="+a);
	}
	public static void main(String[] args) {
		int a=1;
		System.out.println("a="+a);
		changeIntValue(a);
		System.out.println("a="+a);
		
		A aObj=new A();
		aObj.a=1;
		System.out.println("aObj.a="+aObj.a);
		chageObjectA(aObj);
		System.out.println("aObj.a="+aObj.a);

	}

}
